package com.hanamaki.DataStruct;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author hanamaki
 * @version 1.0
 * @date 2021/6/29 14:17
 */
public class PropertiesTest2 {
    public static void main(String[] args) throws IOException {
//        初始化  Properties 配置类
        Properties properties = new Properties();
//        加载指定的配置文件
        properties.load(new FileInputStream("d:/properties.properties"));
        System.out.println(properties);
    }
}
